x=0
a,b=eval(input("请输入两个数值:(用逗号隔开)"))
for i in range (a,b+1):
    if i % 2==1:
        x=x+i
    else:
        x=x-i
print(x)
      